package catherineliu.main.factory.shape;

/**
 * 项目：DesignPatternsDemo
 * 文件描述：创建实现接口的实体类
 * 作者：ljj
 * 创建时间：2020/11/25
 */
public class Circle implements ShapeInterface {

    private double PI = 3.14;
    private double r;

    public Circle(double r) {
        this.r = r;
    }

    @Override
    public void draw() {
        System.out.println("Circle draws area: " + (PI * r * r));
    }
}
